<%@page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false" %>

<html>
<body>
<h2>Hello World!</h2>

<%--
文件上传:
    1:文件上传准备:enctype="multipart/form-data"
    2:导入fileupload jar包
        commons-fileupload
    3:在SpringMVC配置文件中,编写一个文件上传解析器MultipartResolver
--%>
<%
    pageContext.setAttribute("ctp",request.getContextPath());
%>
${msg}
<form action="${ctp}/upload" method="post" enctype="multipart/form-data">
    用户头像:<input name="headerimg" type="file"><br>
    用户头像:<input name="headerimg" type="file"><br>
    用户头像:<input name="headerimg" type="file"><br>
    用户头像:<input name="headerimg" type="file"><br>
    用户名:<input name="username" type="text"><br>

    <input type="submit" value="提交">
</form>

</body>
</html>
